<!--
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-04-10 10:21:31
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2023-04-13 18:39:47
 * @FilePath: \dong2\dong2\src\components\swiper.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
    <div>
        <!-- 走马灯界面 -->
		<div class="myswiper" v-if="isSwiper">
			<el-carousel :interval="2000" height="420px" :type="type" :loop="true">
				<el-carousel-item v-for="(item, index) in imgList" :key="index">
					<!-- <h3 class="medium">{{ item }}</h3> -->
					<img :src="item" alt="" >
				</el-carousel-item>
			</el-carousel>
		</div>
    </div>
</template>

<script>
export default {
        name:'mySwiper',
        data() {
            return {
                isSwiper: true,
                imgList: [
                    // 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fsafe-img.xhscdn.com%2Fbw%2F08b84d89-5a4e-4e1b-b7b7-7abb3883447b%3FimageView2%2F2%2Fw%2F1080%2Fformat%2Fjpg&refer=http%3A%2F%2Fsafe-img.xhscdn.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1683687615&t=b6d8469297249797c7ca98b09a01b746',
                    'https://nimg.ws.126.net/?url=http%3A%2F%2Fdingyue.ws.126.net%2F2019%2F1231%2Fe3cb7789j00q3c264001ic200m800etg00m800et.jpg&thumbnail=660x2147483647&quality=80&type=jpg',
                    'https://nimg.ws.126.net/?url=http%3A%2F%2Fdingyue.ws.126.net%2F2019%2F1231%2F26e0d20fj00q3c264001gc200m800etg00m800et.jpg&thumbnail=660x2147483647&quality=80&type=jpg',
                    'https://nimg.ws.126.net/?url=http%3A%2F%2Fdingyue.ws.126.net%2F2019%2F1231%2F25ac4355j00q3c265001ec200m800etg00m800et.jpg&thumbnail=660x2147483647&quality=80&type=jpg',
                    'https://nimg.ws.126.net/?url=http%3A%2F%2Fdingyue.ws.126.net%2F2019%2F1231%2F349ad94ej00q3c265001ec200m800etg00m800et.jpg&thumbnail=660x2147483647&quality=80&type=jpg',
                    'https://nimg.ws.126.net/?url=http%3A%2F%2Fdingyue.ws.126.net%2F2019%2F1231%2F5b38d519j00q3c267001gc200m800etg00m800et.jpg&thumbnail=660x2147483647&quality=80&type=jpg'

                ]
            }
    },
    props: {
        type: {
            type: String,
            default:""
                
            }
        }
    }
</script>

<style scoped>
    .myswiper{
        width: 1200px;
    } 
    .myswiper img{
            width: 100%;
        }
</style>